<script setup lang="ts">
import HomeNav from '@/components/NavBar/HomeNav.vue'
</script>

<template>
  <div class="app-wrapper">
    <!--导航栏-->
    <HomeNav />
    <RouterView />
  </div>

  <!--背景视频-->
  <video autoplay muted loop id="myVideo" preload="auto">
    <source src="https://t.alcy.cc/acg" type="video/mp4" />
  </video>
</template>

<style scoped>
.app-wrapper {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#myVideo {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100vw;
  min-height: 100vh;
  z-index: -1; /* 确保视频在框架最下层 */
}
</style>
